package com.zlll.winner.enums;

import com.zlll.winner.enums.biz.Constant;

public class AdvertiseEnum {

    /**
     * 删除状态
     */
    public enum ScopeEnum implements Constant {

        CHINA("全国",1),
        CITY("城市",2);

        private String desc;
        private int value;
        private ScopeEnum(String desc, int value){
            this.desc = desc;
            this.value = value;
        }
        @Override
        public String desc() {
            return desc;
        }
        @Override
        public int val() {
            return value;
        }
    }

    public enum PublishEnum implements Constant {

        DRAFT("草稿",0),
        PUBLISH("已发布",1),
        OBTAINED("已下架",2),
        EFFECTIVE("上架中",3),
        NOT_EFFECTIVE("等待上架",4),
        INVALID("已结束",5);

        private String desc;
        private int value;
        private PublishEnum(String desc, int val) {
            this.desc = desc;
            this.value = val;
        }
        @Override
        public String desc() {
            return desc;
        }
        @Override
        public int val() {
            return value;
        }

    }

    /**
     * 分类
     */
    public enum CategoryEnum implements Constant {

        GENGERAL("普通广告",1),
        CAROUSEL("轮播广告",2);

        private String desc;
        private int value;
        private CategoryEnum(String desc, int value){
            this.desc = desc;
            this.value = value;
        }
        @Override
        public String desc() {
            return desc;
        }
        @Override
        public int val() {
            return value;
        }
    }

}
